/*
 * Entity tournament Income
 * @author hoang.pt
 * @version $Id: TournamentIncome.java 12 2010-08-23 09:00:40Z phantichhoang $
 */

package review.jbe.problem1;

/**
 *
 * @author hoang.pt
 */
public class TournamentIncome extends Player implements GradeBonus{
    /**
     * 
     */
    public int grade;

    /**
     * 
     */
    public double rate;

    public TournamentIncome(String name, int grade, double rate) {
        super(name);
        this.grade = grade;
        this.rate = rate;
    }

    @Override
    public void displayDetail() {
        System.out.println("Bonus income of player " +name+ " is:");

        //throw new UnsupportedOperationException("Not supported yet.");
    }

    public double calculateGradeBonus() {
        //check to decide GRADE_BONUS_PERCENT
        return grade * rate * GRADE_BONUS_PERCENT;

        //throw new UnsupportedOperationException("Not supported yet.");
    }

    
    




}
